package com.donquijote.proxy.service.impl;

import com.donquijote.proxy.service.OrderService;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-25 18:06
 */
public class OrderServiceImpl implements OrderService ,Cloneable{

    String OrderName;

    String OrderCode;

    public String getOrderName() {
        return OrderName;
    }

    public void setOrderName(String orderName) {
        OrderName = orderName;
    }

    public String getOrderCode() {
        return OrderCode;
    }

    public void setOrderCode(String orderCode) {
        OrderCode = orderCode;
    }

    @Override
    public void generate() {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.print("订单正在生成");
    }

    @Override
    public String detail() {
        try {
            Thread.sleep(150);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.print("订单详情已经展示");
        return "--------------====分割线=======----------";
    }

    @Override
    public void modify() {
        try {
            Thread.sleep(478);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.print("订单已经修改");
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
